package forteresce.portprofile.config.enums;

/**
 * This enum class provides easy access to system properties.
 * Just choose the enum for the property needed and 
 * select the get method on that.  
 * @author fortersce
 */
public enum SystemPropertiesEnum {
	OS_NAME, OS_ARCH, OS_VERSION,
	FILE_SEPARATOR, PATH_SEPARATOR, LINE_SEPARATOR,
	USER_NAME, USER_HOME, USER_DIR,
    JAVA_IO_TMPDIR, JAVA_VERSION;
	
    /**
     * @return String - System Property represented by this enum name
     */
	public String get() {
		return System.getProperty(toString());
    }
    
    @Override
    public String toString() {
        return name().replace('_', '.').toLowerCase();
    }
}
